package com.leadnews.controller.frontController;

import com.leadnews.service.WemediaService;
import com.leadnews.vo.PageResult;
import com.leadnews.vo.PageResultVo;
import com.leadnews.vo.PageVo;
import com.leadnews.vo.PageWemediaVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping
@CrossOrigin(origins = "*", maxAge = 3600)
@Slf4j
public class WemediaControllerFr {
    @Autowired
    WemediaService wemediaService;

    @PostMapping("/findWemediaFront")
    public PageResultVo findWemediaFront(@RequestBody PageWemediaVo pageVo) {
        return wemediaService.findWemediaFront(pageVo);
    }
}
